package mianyang.zhangsan.com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/mainPage")
public class MainPageController {

    /**
     * 欢迎页面请求
     * @return
     */
    @RequestMapping("/welcome")
    public String welcome(){
        return "system/welcome";
    }

    /**
     * 学生列表页请求
     * @return
     */
    @RequestMapping("/toStudentList")
    public String toStudentList(){
        return "student/studentList";
    }

    /**
     * 成绩查询
     * @return
     */
    @RequestMapping("/toScoreList")
    public String toScoreList(){
        return "score/scoreList";
    }

    /**
     * 老师列表页请求
     * @return
     */
    @RequestMapping("/toTeacherList")
    public String toTeacherList(){
        return "teacher/teacherList";
    }

    /**
     * 请假列表请求
     * @return
     */
    @RequestMapping("/toLeaveList")
    public String toLeaveList(){
        return "leave/LeaveList";
    }

    /**
     * 课程列表请求
     * @return
     */
    @RequestMapping("/toCourseList")
    public String toCourseList(){
        return "course/courseList";
    }

    /**
     * 班级列表请求
     * @return
     */
    @RequestMapping("/toClazzList")
    public String toClazzList(){
        return "clazz/clazzList";
    }

    /**
     * 考勤列表请求
     * @return
     */
    @RequestMapping("/toAttendanceList")
    public String toAttendanceList(){
        return "attendance/attendanceList";
    }

    /**
     * 选课列表请求
     * @return
     */
    @RequestMapping("/selectCourseList")
    public String selectCourse(){
        return "course/selectedCourseList";
    }

    /**
     * 成绩统计请求
     * @return
     */
    @RequestMapping("/scoreStats")
    public String scoreStats(){
        return "score/scoreStats";
    }

    /**
     * 个人页面
     * @return
     */
    @RequestMapping("/modify")
    public String modify(){
        return "system/personalView";
    }

}
